package com.xg.order.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.xg.order.pojo.Order;
import com.xg.user.controller.UserController;
import com.xg.user.service.UserService;

@Controller
public class OrderController {
	
	@Autowired
	private UserService service;
	@RequestMapping("/selectAllOrder.do")
	@ResponseBody
	public List<Order> selectAllOrder(){
		List<Order> list =  ((OrderController) service).selectAllOrder();
		return list;
		
	}

}
